package jd1.aop;

import jd1.entity.Equip;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LoggerAspect {
    private static final Logger log = LoggerFactory.getLogger(LoggerAspect.class);

    public void before() {
        Equip equip = new Equip();
        if(equip.getType().equals("指环")){
            equip.setName("紫色梦幻");
            equip.setAttackPlus(equip.getAttackPlus()+6);
            equip.setDefensePlus(equip.getDefensePlus()+6);
            log.info("添加成功");
        }else {
            log.info("添加失败");
        }
    }
}
